package com.qys.livesMall.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 平台信息发布
 * </p>
 *
 * @author wzy
 * @since 2023-07-05
 */
@Getter
@Setter
@TableName("h2_platform_info")
@Schema(name = "H2PlatformInfo", description = "平台信息发布")
public class H2PlatformInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "类型（0：短期 1：长期）")
    private Byte type;

    @Schema(description = "平台信息类型（0：公告 1：推送）")
    private Byte typeInfo;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "跳转链接")
    private String url;

    @Schema(description = "推送目标 1：用户 、2：店铺、3：主播、4:全员用户 、5：等级、6：指定用户")
    private String target;

    @Schema(description = "推送目标，多个用英文逗号分隔")
    private String pushTarget;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "是否删除")
    @TableLogic
    private Byte deleted;
}
